<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Save requested file in a GLO instance</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="function.cubrid-new-glo.html">« cubrid_new_glo</a></li>
      <li style="float: right;"><a href="function.cubrid-send-glo.html">cubrid_send_glo »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="oldaliases.cubrid.html">CUBRID 过时的别名和函数</a></li>
    <li>Save requested file in a GLO instance</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="function.cubrid-save-to-glo" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">cubrid_save_to_glo</h1>
  <p class="verinfo">(PECL CUBRID &gt;= 8.3.0)</p><p class="refpurpose"><span class="refname">cubrid_save_to_glo</span> &mdash; <span class="dc-title">Save requested file in a GLO instance</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.cubrid-save-to-glo-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>cubrid_save_to_glo</strong></span>(<span class="methodparam"><span class="type">resource</span> <code class="parameter">$conn_identifier</code></span>, <span class="methodparam"><span class="type">string</span> <code class="parameter">$oid</code></span>, <span class="methodparam"><span class="type">string</span> <code class="parameter">$file_name</code></span>): <span class="type">int</span></div>

  <p class="para rdfs-comment">
    The <span class="function"><strong>cubrid_save_to_glo()</strong></span> function is used to save requested file in a glo instance.
  </p>
 </div>


<div class="refsect1 parameters" id="refsect1-function.cubrid-save-to-glo-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
  <dl>
    
  <dt>
<code class="parameter">conn_identifier</code></dt>

  <dd>
<p class="para">Connection identifier.</p></dd>

   
   
  <dt>
<code class="parameter">oid</code></dt>

  <dd>
<p class="para">Oid of the glo instance that you want to save a file in.</p></dd>

   
   
  <dt>
<code class="parameter">file_name</code></dt>

  <dd>
<p class="para">The name of the file that you want to save.</p></dd>

   
  </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.cubrid-save-to-glo-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
    <strong><code>true</code></strong>, when process is successful.
  </p>
  <p class="para">
    <strong><code>false</code></strong>, when process is unsuccessful.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.cubrid-save-to-glo-examples">
  <h3 class="title">范例</h3>
  <div class="example" id="example-1210">
   <p><strong>示例 #1 <span class="function"><strong>cubrid_save_to_glo()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$req&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">cubrid_execute&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">$con</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"select&nbsp;image&nbsp;from&nbsp;person&nbsp;where&nbsp;id=1"</span><span style="color: #007700">);<br />if&nbsp;(</span><span style="color: #0000BB">$req</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;list&nbsp;(</span><span style="color: #0000BB">$oid</span><span style="color: #007700">)&nbsp;=&nbsp;</span><span style="color: #0000BB">cubrid_fetch</span><span style="color: #007700">(</span><span style="color: #0000BB">$req</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">cubrid_close_request</span><span style="color: #007700">(</span><span style="color: #0000BB">$req</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$res&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">cubrid_save_to_glo&nbsp;</span><span style="color: #007700">(</span><span style="color: #0000BB">$con</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$oid</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"input.jpg"</span><span style="color: #007700">);<br />&nbsp;&nbsp;&nbsp;if&nbsp;(</span><span style="color: #0000BB">$res</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"image&nbsp;changed&nbsp;successfully"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;}<br />}<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
   </div>

  </div>
 </div>


 <div class="refsect1 notes" id="refsect1-function.cubrid-save-to-glo-notes">
  <h3 class="title">注释</h3>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    为了向下兼容，可以使用下列已废弃的别名：
    <span class="function"><strong>cubrid_save_to_glo()</strong></span>
   </p>
  </p></blockquote>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    This function is removed from CUBRID 3.1.
   </p>
  </p></blockquote>
 </div>


  <div class="refsect1 seealso" id="refsect1-function.cubrid-save-to-glo-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist"> 
    <li class="member"><span class="function"><a href="function.cubrid-new-glo.html" class="function" rel="rdfs-seeAlso">cubrid_new_glo()</a> - Create a glo instance</span></li>  
    <li class="member"><span class="function"><a href="function.cubrid-load-from-glo.html" class="function" rel="rdfs-seeAlso">cubrid_load_from_glo()</a> - Read data from a GLO instance and save it in a file</span></li>  
    <li class="member"><span class="function"><a href="function.cubrid-send-glo.html" class="function" rel="rdfs-seeAlso">cubrid_send_glo()</a> - Read data from glo and send it to std output</span></li>  
   </ul>
  </p>
  </div>


</div></div></div></body></html>